<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  <title>Forbidden (403)</title>
</head>

<body>
<a href="/"><img src="
<?php
	$servername = $_SERVER['SERVER_NAME'];
	if (substr($servername, 0, 4) == 'www.')
	{
		$domain = substr($servername, 4);
	}
	else
	{
		$domain = $servername;
	}
	$sitemodel = new Site();
	$site = $sitemodel->getSiteByDomain($domain);
	if ($site == false)
	{
		header(Util::HTTPStatus(500));
		exit;
	}
	if (empty($_SERVER['HTTPS']))
	{
		echo 'http://'.Q::ini('appini/IMAGE_SERVER_DOMAIN').'/'.$site['template'].'/img/logo.png';
	}
	else
	{
		echo 'https://'.Q::ini('appini/IMAGE_SERVER_DOMAIN').'/'.$site['template'].'/img/logo.png';
	}
?>
" style="border: 0px; float: left;" /></a>
<h2>
Oops...you do not have a permission to access this page.
</h2>
</body>
</html>
